package self.hoy.demo.grainmall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import self.hoy.demo.common.utils.PageUtils;
import self.hoy.demo.grainmall.ware.entity.Purchase;
import self.hoy.demo.grainmall.ware.vo.MergeVo;
import self.hoy.demo.grainmall.ware.vo.PurchaseDoneVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author Hoy
 * @email xxx@gmail.com
 * @date 2020-07-04 22:44:51
 */
public interface PurchaseService extends IService<Purchase> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageUnreceivePurchase(Map<String, Object> params);

    void mergePurchase(MergeVo mergeVo);

    /**
     * 采购单id
     * @param ids 采购单id wms_purchase的主键
     */
    void receive(List<Long> ids);

    void finish(PurchaseDoneVo purchaseFinishVo);
}

